module game{
    export class EventConst{
        public static Remove_Candy:number = 10001;
    }
    export class GameData{
        //历史最高分(从微信获取)
        public historyScore:number = 0;
        //当前地图(下一版本)
        public mapDic:{[index:number]:CandyVO} = {};
        //当前进度
        public curmax = 6;

        public config:{[key:number]:number[]};

        constructor(){
            this.config = {};
            this.config[5] = [0.3 , 0.3 , 0.2 , 0.1 , 0.1];
            this.config[6] = [0.3 , 0.25 , 0.2 , 0.1 , 0.1, 0.05];
            this.config[7] = [0.25 , 0.25 , 0.2 , 0.1 ,0.1 , 0.5 , 0.5];
        }

        public reset(){
            this.curmax = 6;
        }


        
    }

    export let  gameData = new GameData();
}